package cn.changgou.service;

import cn.changgou.goods.pojo.Album;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AlbumService {

    /*相册分页条件查询*/
    PageInfo<Album> findAlbumPage(Album album, Integer page, Integer size);

    /*相册分页查询*/
    PageInfo<Album> albumByPage(Integer page, Integer size);

    /*根据条件查询相册列表*/
    List<Album> findList(Album album);

    /*根据ID删除相册*/
    void delete(Long id);

    /*根据ID修改相册*/
    void update(Album album);

    /*根据ID查询相册*/
    Album findOne(Long id);

    /*增加相册*/
    void add(Album album);

    /*查询所有相册*/
    List<Album> findAll();
}
